package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.*;

/**
 * 三方存管异常，股东卡异常
 */
@ApiModel(description = "三方存管异常，股东卡异常")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class ApiRequestAccountIncompleteData   {
  @JsonProperty("pageSize")
  private Integer pageSize = null;

  @JsonProperty("index")
  private Integer index = null;

  /**
   * 异常类型；THREE_WAY_PIPE：三方存管异常；SHAREHOLDERS_CARD：股东卡异常
   */
  public enum ExceptionTypeEnum {
    THREE_WAY_PIPE("THREE_WAY_PIPE"),
    
    SHAREHOLDERS_CARD("SHAREHOLDERS_CARD");

    private String value;

    ExceptionTypeEnum(String value) {
      this.value = value;
    }

    @Override
    @JsonValue
    public String toString() {
      return String.valueOf(value);
    }

    @JsonCreator
    public static ExceptionTypeEnum fromValue(String text) {
      for (ExceptionTypeEnum b : ExceptionTypeEnum.values()) {
        if (String.valueOf(b.value).equals(text)) {
          return b;
        }
      }
      return null;
    }
  }

  @JsonProperty("exceptionType")
  private ExceptionTypeEnum exceptionType = null;

  public ApiRequestAccountIncompleteData pageSize(Integer pageSize) {
    this.pageSize = pageSize;
    return this;
  }

  /**
   * 分页查询的一页记录数，默认为20
   * @return pageSize
  **/
  @ApiModelProperty(example = "20", value = "分页查询的一页记录数，默认为20")


  public Integer getPageSize() {
    return pageSize;
  }

  public void setPageSize(Integer pageSize) {
    this.pageSize = pageSize;
  }

  public ApiRequestAccountIncompleteData index(Integer index) {
    this.index = index;
    return this;
  }

  /**
   * 页码数，第一页为0
   * @return index
  **/
  @ApiModelProperty(example = "1", value = "页码数，第一页为0")


  public Integer getIndex() {
    return index;
  }

  public void setIndex(Integer index) {
    this.index = index;
  }

  public ApiRequestAccountIncompleteData exceptionType(ExceptionTypeEnum exceptionType) {
    this.exceptionType = exceptionType;
    return this;
  }

  /**
   * 异常类型；THREE_WAY_PIPE：三方存管异常；SHAREHOLDERS_CARD：股东卡异常
   * @return exceptionType
  **/
  @ApiModelProperty(example = "THREE_WAY_PIPE", required = true, value = "异常类型；THREE_WAY_PIPE：三方存管异常；SHAREHOLDERS_CARD：股东卡异常")
  @NotNull


  public ExceptionTypeEnum getExceptionType() {
    return exceptionType;
  }

  public void setExceptionType(ExceptionTypeEnum exceptionType) {
    this.exceptionType = exceptionType;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiRequestAccountIncompleteData apiRequestAccountIncompleteData = (ApiRequestAccountIncompleteData) o;
    return Objects.equals(this.pageSize, apiRequestAccountIncompleteData.pageSize) &&
        Objects.equals(this.index, apiRequestAccountIncompleteData.index) &&
        Objects.equals(this.exceptionType, apiRequestAccountIncompleteData.exceptionType);
  }

  @Override
  public int hashCode() {
    return Objects.hash(pageSize, index, exceptionType);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiRequestAccountIncompleteData {\n");
    
    sb.append("    pageSize: ").append(toIndentedString(pageSize)).append("\n");
    sb.append("    index: ").append(toIndentedString(index)).append("\n");
    sb.append("    exceptionType: ").append(toIndentedString(exceptionType)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

